package com.vueperson.vueperson.t1.CreationalPattern.PrototypePattern.t01;

public class Client {
    public static void main(String[] args) {
        ConcretePrototype prototype=new ConcretePrototype();
        prototype.setAttr("Sunny");
        System.out.println(prototype);

        ConcretePrototype copy= (ConcretePrototype) prototype.clone();
        copy.setAttr("Rainy");
        System.out.println(copy);
        System.out.println(prototype);
    }
}
